<?php $this->headTitle($this->title); ?>
<h2><?php echo $this->escape($this->title); ?></h2>
<h4>Current Master Path: <?php echo $this->currentMasterPath; ?></h4>
<div id="path_tree" class="filetree"></div>
<script type="text/javascript">
$(document).ready(function () {
    $('#path').text('<?php echo $this->currentMasterPath; ?>');
    $('#path_tree').fileTree(
        {
          root: <?php echo '\''. $this->rootDir . '\''; ?>,
          script: '<?php echo $this->baseUrl(); ?>/master-path/folders-list'
        },
        $.noop,
        function (path) {
          $('#path').text(path);
        }
    );
 });
</script>
<?php echo $this->form; ?>